package com.base.self.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
/**
* 商品分类
*
* @author XiFYuW
* @since 2020-11-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="CommodityClassify对象", description="商品分类")
public class CommodityClassify implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "0.未删除 1.已删除")
    private Integer isDel;

    @ApiModelProperty(value = "分类名称")
    private String classifyName;

    @ApiModelProperty(value = "父级分类id")
    private Integer classifyPid;

    @ApiModelProperty(value = "父级分类名称")
    @TableField(exist = false)
    private String classifyPidName;

    @ApiModelProperty(value = "商品分类图标")
    private String classifyPic;

    @ApiModelProperty(value = "排序字段(值越大越在前)")
    private Integer classifySort;

}
